<style scoped lang="less">
.record-detail{
	width: 955px;
	margin: 0 auto;
}
</style>
<template>
	<div class="page-setting">
		<div class="crumbs">
			<router-link to="/">首页</router-link> / <span>消防档案</span> / <span class="active">企业概览</span>
		</div>
		<el-container :style="{height: mainH+'px'}">
		  	<el-main class="census-main">
		  		<Detail 
					ref="detail"
		    		:data="details"
		    		@success="submitSuccessAction"
		    	>
		    	</Detail>
		  	</el-main>
		</el-container>
	</div>
</template>
<script>
import Detail from '@/components/census/record/RecordDetail.vue'
export default {
	name: 'Overview',
	components: {
		Detail
	},
	props: {
		winH: {
			type: Number,
			default: 500
		}
	},
	data () {
		return {
			details: {}
		}
	},
	watch: {},
	computed: {
		mainH () {
			return this.winH-219
		}
	},
	methods: {
		getData (page) {
			this.openFullLoading()
			this.$get('/business/business/detail').then(res => {
				this.closeFullLoading()
                this.details = res.data
            }, (err) =>{
            	this.closeFullLoading()
				if(err.msg){
					this.$message.error(err.msg);
				}
            })
		},
		submitSuccessAction () {}
	},
	created () {
		this.getData()
	},
	activated () {
		
	},
	mounted () {
		
	}
}
</script>
